const express = require('express');
const router = express.Router();
const orderController = require('../controller/orderController.js');
// 生成订单
router.post('',orderController.AddOrder);
// 修改订单
router.put('',orderController.UpdateOrder);
// 删除订单
router.delete('',orderController.DeleteOrder);
// 获取个人订单
router.post('/personal',orderController.PersonalOrder);
// 获取订单列表
router.post('/list',orderController.GetOrderList);
// 查看订单详情
router.get('/detail/:id',orderController.GetOrderDetail);

module.exports = router;